package com.cskaoyan.mapper.usermapper;

import com.cskaoyan.bean.userbean.Footprint;
import com.cskaoyan.bean.userbean.FootprintExample;
import com.cskaoyan.vo.wx.WxFootPrintGoodsVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface FootprintMapper {
    long countByExample(FootprintExample example);

    int deleteByExample(FootprintExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Footprint record);

    int insertSelective(Footprint record);

    List<Footprint> selectByExample(FootprintExample example);

    Footprint selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Footprint record, @Param("example") FootprintExample example);

    int updateByExample(@Param("record") Footprint record, @Param("example") FootprintExample example);

    int updateByPrimaryKeySelective(Footprint record);

    int updateByPrimaryKey(Footprint record);

    void updateDeleteById(Integer id);


    ArrayList<Integer> selectIdByUserId(@Param("userId")Integer userId, @Param("page")Integer page, @Param("size") Integer size);

//    ArrayList<WxFootPrintGoodsVo> wxFootPrintGoodsVoList  selectGoodsIdByUserId(@Param("userId")Integer userId, @Param("page")Integer page, @Param("size") Integer size);



    Footprint selectByUserIdAndGoodsId(@Param("userId")Integer userId, @Param("goodsId")Integer goodsId);

    ArrayList<WxFootPrintGoodsVo> selectGoodsIdByUserId(@Param("userId")Integer userId, @Param("page")Integer page, @Param("size") Integer size);
}